Remove fallback code that would substitute screen size otherwise.
device_width = axis_info_x->max_value - axis_info_x->min_value;
device_height = axis_info_y->max_value - axis_info_y->min_value;
- if (device_width > 0)
- x_min = axis_info_x->min_value;
- else
- {
- device_width = gdk_screen_get_width (gdk_window_get_screen (window));
- x_min = 0;
- }
-
- if (device_height > 0)
- y_min = axis_info_y->min_value;
- else
- {
- device_height = gdk_screen_get_height (gdk_window_get_screen (window));
- y_min = 0;
- }
+ x_min = axis_info_x->min_value;
+ y_min = axis_info_y->min_value;
window_width = gdk_window_get_width (window);
window_height = gdk_window_get_height (window);